package com.example.dubboconsumer.controller;

import com.example.commonapi.service.UserServcie;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {
    @Reference
    private UserServcie userService;
    @GetMapping("/user")
    public String getUser(){
       return userService.getUser("1");

    }

}
